import {mapActions, mapGetters} from 'vuex';
//import api from 'api';

export default {
  data () {
    return {
  
      menuList: [{
        "menuId": "teacherGroup_1",
        "menuNameCn":"功能",

        "iconCls": "el-icon-location",
        "children":[{
          "menuId": "teacherGroup_2",
          "menuNameCn":"教师组列表",
        
          "iconCls": "el-icon-location",
          "children":[],
          "comp":"teacherList",
          "url":"/teacherList"
        }],
        "comp":"",
        "url":""
      },{
        "menuId": "teacherGroup_3",
        "menuNameCn":"作业列表",
       
        "iconCls": "el-icon-location",
        "children":[],
        "comp":"homeworkList",
        "url":"/homeworkList"
      }
      ],
      // 菜单集合
      showMenuFlag: true, // 是否展示菜单
      isCollapse: false // 是否折叠菜单

    };
  },

  methods: {
    ...mapActions([ // https://vuex.vuejs.org/zh-cn/actions.html
      'sysAddTab',
      'sysRemoveTab',
      'sysClickTab'
    ])
  },
  computed: {
    ...mapGetters([ // https://vuex.vuejs.org/zh-cn/getters.html
      'getSysHomeCurrentTab',
      'getSysHomeTabs'
    ])
  },
  components: {

    teacherList: () => import('views/TeacherGroupManage/plugin/teacherList.vue'),
    homeworkList: () => import('views/comp/homeworkhistory.vue'),
  }
};
